package org.xg.domain;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name = "SYS_R_ROLE2USER")
public class User2RoleVO extends IdEntity {
	private UserVO user ;
	private RoleVO role ;
	
	public User2RoleVO(){}
	
	@ManyToOne
	@JoinColumn(name="USER_ID")
	public UserVO getUser() {
		return user;
	}
	
	public void setUser(UserVO user) {
		this.user = user;
	}
	
	@ManyToOne
	@JoinColumn(name="ROLE_ID")
	public RoleVO getRole() {
		return role;
	}
	
	public void setRole(RoleVO role) {
		this.role = role;
	}
	
}
